<{include file="../template/index/public/head.html"}>
<{include file="../template/index/public/nav.html"}>
<SCRIPT LANGUAGE="JavaScript">
    <!--//目的是为了做风格方便
    document.write('<div class="wrap">');
    //-->
</SCRIPT>
<!--
-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
    <tr>
        <td height="100" valign="top" class="Main">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" id="viewarticle">
                <tr>
                    <td class="head"><h3 class="L"></h3>
                        <span class="TAG"> 欢迎回来 </span>
                        <h3 class="R"></h3></td>
                </tr>
                <tr>
                    <td class="middle">
                        <table width="100%" border="0" cellspacing="5" cellpadding="5">
                            <tr>
                                <td height="25">
                                    <table width="100%" border="0" cellspacing="1" cellpadding="6">

                                       <tr style="text-align:center;">
                                           <td style="width:25%;">产品名字</td>
                                           <td style="width:25%;">产品图片</td>
                                           <td style="width:25%;">数量</td>
                                           <td style="width:25%;">价格</td>
                                       </tr>
                                        <{php}>$total = 0;<{/php}>
                                        <{volist name="cart" id="item"}>
                                        <tr style="text-align:center;">
                                            <td><{$products[$item['product_id']]['name']}></td>
                                            <td><img src="<{$products[$item['product_id']]['cover']}>" style="max-width: 100px;max-height:100px;" /></td>
                                            <td><{$item.num}></td>
                                            <td><{php}> $current =  $item['num'] * $products[$item['product_id']]['price']; $total += $current; echo $current;  <{/php}></td>
                                        </tr>
                                        <{/volist}>
                                        <tr style="text-align:center;">
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td  style="color:red;">总价：<{$total}></td>
                                        </tr>


                                    </table>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td align="center" style="height:30px">
                                                <a href="/index/cart/order" class="button" style="display:inline-block;padding:5px;">确定下单</a>
                                               </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr><tr><td class="foot"><h3 class="L"></h3><h3 class="R"></h3></td></tr>
            </table>
        </td>
    </tr>
</table>
<!--
-->
<SCRIPT LANGUAGE="JavaScript">
    <!--//目的是为了做风格方便
    document.write('</div>');
    //-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    clickEdit.init();
    //-->
</SCRIPT>
<{include file="../template/index/public/foot.html"}>
</body>
</html>
